# -*- coding: utf-8 -*-

from odoo import models, fields, api

class PartnerMobileRecordType(models.Model):
    _name = 'partner.mobile.record.type'
    name=fields.Char(string='名称')

class PartnerMobileRecord(models.Model):
    _name= 'partner.mobile.record'
    _rec_name ='partner_id'
    partner_id=fields.Many2one('res.partner',required=True,string=u'客户')
    phone=fields.Char()
    record_time=fields.Date(required=True,string=u'通话时间')
    period=fields.Float(string=u'通话时长(分钟)')
    record_type=fields.Many2one('partner.mobile.record.type',string=u'通话类型')
    employee_id=fields.Many2one('hr.employee',string=u'销售员')
    record_content=fields.Text(string=u'通话内容',required=True)
    record_result=fields.Text(string=u'通话结果',required=True)
    remark=fields.Text(string=u'备注')
    boat_name=fields.Char(string=u'船名')
    boat_size=fields.Char(string=u'预定吨位（t）')
    next_date=fields.Date(string=u'下次拜访日期')



